﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditProgram.aspx.cs" Inherits="SD.Web.Iteration1.Program.EditProgram" %>
<%@ Register src="../../Controls/Lookup/ContactLookup.ascx" tagname="ContactLookup" tagprefix="uc1" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>PROGRAM DETAILS</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="grid740 simplebox relative">
        <!-- start tabs codes -->
        <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <div style="float:right; width:225px; padding:0px;">
                <asp:Button CssClass="st-button" ID="ButtonDeactivate" runat="server" 
                Text='Deactivate' CommandName="active"
                CausesValidation="False" onclick="ButtonDeactivate_Click" />
                <asp:Button CssClass="st-button" ID="ButtonSave" runat="server" Text="Save" OnClick="ButtonSave_Click"
                    UseSubmitBehavior="False" ValidationGroup="edit" Enabled="True" />
                <asp:Button CssClass="st-button" ID="ButtonBack" runat="server" Text="Back" OnClick="ButtonBack_Click" />
        </div>
            <ul class="ui-tabs-nav ui-he">                         
                <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">
                    Details</a></li>
                <%#  (bool) Eval("Status") ? "Yes" : "No" %>                
            </ul>

            <div class="clear">
            </div>
            <div id="tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                <div class="simplebox">
                    <div class="st-form-line-noleft">
                        <div class="half">
                            <asp:Label ID="LabelProgramName" CssClass="st-labeltext level1" runat="server">Programme Name<span style="color:Red">*</span></asp:Label>
                            <asp:TextBox ID="TextBoxName" CssClass="st-forminput" runat="server" Width="200px"></asp:TextBox>
                             <span style="color:Red"><asp:Label ID = "lblCheck" runat="server" Visible="false"></asp:Label></span>
                        </div>
                        <div class="half last">
                            <asp:Label ID="LabelCounty" CssClass="st-labeltext level1" runat="server" Text="Contact"></asp:Label>
                            <asp:TextBox ID="TextBoxManagerName" CssClass="st-forminput" runat="server" Width="150px"
                                ReadOnly="True"></asp:TextBox>
                            <asp:LinkButton ID="LinkButtonLookup" runat="server" 
                                OnClick="LinkButtonLookup_Click" CausesValidation="False">Lookup
                            </asp:LinkButton>
                            <asp:HiddenField ID="HiddenFieldManagerId" runat="server" />
                            <asp:HiddenField ID="HiddenFieldProgramId" runat="server" />
                            <asp:HiddenField ID="CheckContact" runat="server" />
                            <asp:HiddenField ID="Accept" runat="server" />
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="st-form-line-noleft">
                        <div class="half">
                            <asp:Label ID="LabelDescription" CssClass="st-labeltext level1" runat="server" Text="Description"></asp:Label>
                        <asp:TextBox ID="TextBoxDescription" CssClass="st-forminput" runat="server" 
                            TextMode="MultiLine" Rows="6" Width="200px"></asp:TextBox>
                        </div>
                        <div class="half last">
                            <asp:Label ID="LabelIsActive" CssClass="st-labeltext level1" runat="server" Text="Is Active"></asp:Label>
                            <asp:Literal ID="LiteralIsActive" runat="server" Text='No'></asp:Literal>
                        </div>
                        <div class="clear">
                        <span style="color:Red">
                            <asp:Label ID="lblCheckSuccess" runat="server" Visible="false" Text = "Edit successfully!!">  </asp:Label>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end tabs codes -->
        <uc1:ContactLookup ID="ContactLookup1" runat="server" HiddenFieldResultId="HiddenFieldManagerId" TextBoxResultId="TextBoxManagerName" />
    </div>
</asp:Content>
